package cn.xxstudy.permission.help.view

import android.graphics.Rect
import android.view.View
import androidx.recyclerview.widget.RecyclerView

/**
 * @author ：wuxinxi on 2020/11/12 .
 * @packages ：cn.xxstudy.permission.help.view .
 * TODO:GridView 间距
 */
class GridItemDecoration(private val spanCount: Int) : RecyclerView.ItemDecoration() {
    override fun getItemOffsets(outRect: Rect, view: View, parent: RecyclerView, state: RecyclerView.State) {
        super.getItemOffsets(outRect, view, parent, state)
        outRect.set(0, 40, 0, 0)
    }
}